FROM alpine
WORKDIR /home/
COPY . .
COPY sampling_strategies.json /etc/jaeger/

# Agent zipkin.thrift compact
EXPOSE 5775/udp

# Agent jaeger.thrift compact
EXPOSE 6831/udp

# Agent jaeger.thrift binary
EXPOSE 6832/udp

# Agent config HTTP
EXPOSE 5778

# Collector HTTP
EXPOSE 14268

# Collector gRPC
EXPOSE 14250

# Web HTTP
EXPOSE 16686

# Delve
EXPOSE 12345

ENV SAMPLING_STRATEGIES_FILE=/etc/jaeger/sampling_strategies.json

VOLUME ["/tmp"]
ENTRYPOINT ["./jaeger-all", "--headless", "--listen=:12345", "--api-version=2", "--accept-multiclient", "--log", "--"]